
$(function () {
    $('#btnSubmit').click(function () {dataPost();});
});

function dataPost()
{
	if($('#hidValue').val().length>0)
	{
		$('#divButton').hide();
		$('#divSubmitLoading').show();
		$.ajax({
		    type: "POST", 
		    url: "../../qihooApps/appPost", 
		    data: {"idList":$('#hidValue').val(),"isLewifi":$('#sltIsToLewifi').val(),"isRecommend":$('#sltIsRecommend').val()},
		    success: function (result) {	 
				$('#divButton').show();
				$('#divSubmitLoading').hide();
				alert('成功创建'+result.split('|')[1]+'条记录');
		    }
		});	
	}else
	{
		alert('未选择数据');
	}
}
